import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'code_670fabc7_yot3',
            name: "{{code_670fabc7_yot3}}",
            binding: 'code',
            updateOn: 'blur',
            defaultI18nValue: '编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "code", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'name_b66df7a6_b8rf',
            name: "{{name_b66df7a6_b8rf}}",
            binding: 'name',
            updateOn: 'blur',
            defaultI18nValue: '姓名',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_06ea1bdd_pn0o',
            name: "{{remark_06ea1bdd_pn0o}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "remark", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'gender_cf4ae015_v3hu',
            name: "{{gender_cf4ae015_v3hu}}",
            binding: 'gender',
            updateOn: 'blur',
            defaultI18nValue: '性别',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'location_b93699bb_njr0',
            name: "{{location_b93699bb_njr0}}",
            binding: 'location',
            updateOn: 'blur',
            defaultI18nValue: '常驻地',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "location", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'levelOfMember_4dc56d77_6pn4',
            name: "{{levelOfMember_4dc56d77_6pn4}}",
            binding: 'levelOfMember',
            updateOn: 'blur',
            defaultI18nValue: '等级',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "levelOfMember", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'levelName_f31f8371_a378',
            name: "{{levelName_f31f8371_a378}}",
            binding: 'levelName',
            updateOn: 'blur',
            defaultI18nValue: '等级名称',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "levelName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'privilege_ed115c94_rpkz',
            name: "{{privilege_ed115c94_rpkz}}",
            binding: 'privilege',
            updateOn: 'blur',
            defaultI18nValue: '等级特权',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "privilege", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'recommandPeople_f4eb2c2e_320u',
            name: "{{recommandPeople_f4eb2c2e_320u}}",
            binding: 'recommandPeople',
            updateOn: 'blur',
            defaultI18nValue: '推荐人',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "recommandPeople", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'phoneNumber_2534c8bd_n6vo',
            name: "{{phoneNumber_2534c8bd_n6vo}}",
            binding: 'phoneNumber',
            updateOn: 'blur',
            defaultI18nValue: '手机号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "phoneNumber", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '会员信息',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
